// import request from '@/utils/request'

import request from '@/utils/request'

/**
 * @description: 用户登录
 * @param data
 */
export const loginAPI = (data) => request.post('/sys/login', data)

/**
 * @description: 获取用户信息
 * @param token
 */
export const getInfoAPI = () => request.post('/sys/profile')

/**
 * 获取用户详细信息
 * @param id
 */
export const getUserInfoDetailAPI = (id) => request.get(`/sys/user/${id}`)

/**
 * @description: 退出登录
 */
export const logoutAPI = () => {
}
